<%@ page contentType="text/html; charset=UTF-8"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="com.veryedu.hibernate.hbm.entity.Film" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>支付订单</title>
    <link rel="stylesheet" href="../css/icomoon.css" />
	<link rel="stylesheet" href="../css/bootstrap.css" />
	<link rel="stylesheet" href="../css/index.css" />
	<script type="text/javascript" src="../js/jquery-1.10.2.js"></script>
	<script type="text/javascript" src="../js/bootstrap.js"></script>
	<script type="text/javascript" src="../js/icomoon.js"></script>
	<script>
	$(document).ready(function () {
	});
	</script>
  </head>
  
  <body>
  	   
    <div class="container"> 
    <div class="navbar navbar-inverse navbar-default" role="navigation">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#"><h1>VeryEdu 影院订票系统</h1></a>
        </div>
        <div class="navbar-collapse collapse">
          
        </div><!--/.navbar-collapse -->
      </div>
    </div>
    </div>


<div class="container">			
			<div class="row row-offcanvas row-offcanvas-left">
            	<div class="col-xs-6 col-sm-3 sidebar-offcanvas">
                            
                    <ul class="nav nav-pills nav-stacked">
                      <li><a href="#"><span class="icon-camera"></span><span class="mls"> 浏览影片</span></a></li>
                      <li><a href="#"><span class="icon-bell"></span><span class="mls"> 浏览场次</span></a></li>
                      <li class="active"><a href="#"><span class="icon-users"></span><span class="mls"> 选择座位</span></a></li>                  
                      <li><a href="#"><span class="icon-coin"></span><span class="mls"> 支付订单</span></a></li>                
                      <li><a href="#"><span class="icon-numbered-list"></span><span class="mls"> 查看订单</span></a></li>
                    </ul>
                
                </div>
            	<div class="col-xs-12 col-sm-9">
            	<s:if test="hasActionErrors()">
            	<div class="alert alert-danger">
            	<strong>错误：</strong><s:iterator id="actionError" value="actionErrors"><s:property/></s:iterator>
            	</div>
            	</s:if>
            	<s:form action="createOrder" method="post">
            	<input type="hidden" name="showTimeId" value="${sessionScope.showTimeId}" />
            	<input type="hidden" name="filmId" value="${sessionScope.filmId}" />
            	<input type="hidden" name="price" value="${sessionScope.price}" />
            	<input type="hidden" name="totalPrice" value="${sessionScope.totalPrice}" />
                    <div class="row">
                    <s:iterator value="#session.tickets" id="ticket" status="t">
                    	<input type="hidden" name="buySeats" value="${ticket.seatId}" />
                        <div class="col-md-4">
                            <div class="thumbnail">
                              <img src="../images/ticket.gif" class="img-responsive" width="100%" height="100%">
                              <h5 style="position:absolute; top:80px; left: 80px;"><s:property value="filmname" /></h5>
                              <h5 style="position:absolute; top:50px; left: 80px;"><s:property value="roomname" /></h5>                      
                              <h5 style="position:absolute; top:50px; left: 180px;"><s:property value="seatname" /></h5>                  
                              <h5 style="position:absolute; top:105px; left: 60px;"><s:property value="date" /></h5>                  
                              <h5 style="position:absolute; top:105px; left: 140px;"><s:property value="time" /></h5>                  
                              <h5 style="position:absolute; top:105px; left: 200px;"><s:property value="price" /></h5>
                            </div>
                        </div>
                    </s:iterator>
                    </div>
					<div class="row">
						<div class="col-md-12">&nbsp;</div>
					</div>
					<hr />
					<div class="row">
						<div class="col-md-6">
						 <div class="form-group">
							<label for="inputName" class="col-sm-4 control-label">会员名称</label>
							<div class="col-sm-8">
							  <input type="text" class="form-control" name="userName" placeholder="会员名称">
							</div>
						  </div>
						</div>						
						<div class="col-md-6">
						  <div class="form-group">
							<label for="inputPassword" class="col-sm-4 control-label">会员密码</label>
							<div class="col-sm-8">
							  <input type="password" class="form-control" name="password" placeholder="会员密码">
							</div>
						  </div>
						</div>
					</div>
					<br />

					<div class="row">
						<div class="col-md-12 text-center">
							<s:submit cssClass="btn btn-primary" value="支付" />
						</div>
					</div>
				</s:form>
                </div>
		</div>	
		
		
      <hr>
      <footer>
        <p>&copy; Company 2013</p>
      </footer>
    </div> <!-- /container -->
  </body>
</html>
